import request from '@/utils/http'

// 底层持仓明细
export async function find_heavy_warehouse_stock(params?: any): Promise<any>{
  return request(`/api/fund/portfolio/equity/heavy_warehouse_stock`,{
    method: 'POST',
    data: params
  })
}
// 股票风格特征
export async function queryStockStyleFeatureChart(params?: any): Promise<any>{
  return request(`/api/fund/portfolio/equity/queryStockStyleFeatureChart`,{
    method: 'POST',
    data: params
  })
}
// 股票行业分布（申万）-环形图
export async function queryPortFolioEvent(params?: any): Promise<any>{
  return request(`/api/fund/fof/event/queryPortFolioEvent`,{
    method: 'POST',
    data: params
  })
}
// 股票行业分布（申万）-堆积图
export async function stock_industry_distribution_sw(params?: any): Promise<any>{
  return request(`/api/fund/portfolio/equity/stock_industry_distribution_sw`,{
    method: 'POST',
    data: params
  })
}

// 股票行业分布（中证）-堆积图
export async function stock_industry_distribution_zz(params?: any): Promise<any>{
  return request(`/api/fund/portfolio/equity/stock_industry_distribution_zz`,{
    method: 'POST',
    data: params
  })
}

// 股票所属板块特征--堆积图
export async function stock_plate_characteristic(params?: any): Promise<any>{
  return request(`/api/fund/portfolio/equity/stock_plate_characteristic`,{
    method: 'POST',
    data: params
  })
}
// 最新一期持仓股票的因子值监控-柱状图
export async function query_latest_barra(params?: any): Promise<any>{
  return request(`/api/fund/portfolio/equity/query_latest_barra`,{
    method: 'POST',
    data: params
  })
}

// 股票概念分布图-treemap
export async function find_by_portfolio_code(params?: any): Promise<any>{
  return request(`/api/fund/dh_portfolio_stock_concept_allocation/find_by_portfolio_code`,{
    method: 'POST',
    data: params
  })
}


